//
//  MPlusUserTableViewCell.m
//  medicineplus
//
//  Created by gufei on 15-5-24.
//  Copyright (c) 2015年 chn_ruby@126.cn. All rights reserved.
//

#import "MPlusUserTableViewCell.h"
#import "MPlusDefine.h"
#import "MPlusString.h"
#import "MPlusUtils.h"

#define IMAGE_SIZE_10 10
#define IMAGE_SIZE_20 20
#define CELL_HEIGHT 50

@implementation MPlusUserTableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        _aMenuIcon = [[UIImageView alloc] initWithFrame:CGRectMake(PADDING_20, PADDING_15, IMAGE_SIZE_20, IMAGE_SIZE_20)];
        [self addSubview:_aMenuIcon];
        
        _aTitle = [[UILabel alloc] initWithFrame:CGRectMake(PADDING_20*2+IMAGE_SIZE_20, PADDING_15, SCREEN_WIDTH/4, IMAGE_SIZE_20)];
        _aTitle.font = [UIFont systemFontOfSize:[kFontSize16 floatValue]];
        [self addSubview:_aTitle];
        
        _aArrowIcon = [[UIImageView alloc] initWithFrame:CGRectMake(SCREEN_WIDTH-PADDING_10-IMAGE_SIZE_10, PADDING_15, IMAGE_SIZE_10, IMAGE_SIZE_20)];
        _aArrowIcon.image = [UIImage imageNamed:kIconArrow];
        [self addSubview:_aArrowIcon];
        
        _aIntro = [[UILabel alloc] initWithFrame:CGRectMake(_aArrowIcon.frame.origin.x-SCREEN_WIDTH/4, PADDING_15, SCREEN_WIDTH/4, IMAGE_SIZE_20)];
        _aIntro.font = [UIFont systemFontOfSize:[kFontSize12 floatValue]];
        _aIntro.textColor = [MPlusUtils colorWithHexString:kPurpleColor];
        [self addSubview:_aIntro];
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
